import { axios } from '@/utils/request'

export function deletePic(parameter) { //删除图片
  return axios({
    url: '/common/upload/deletePic?name=' + parameter,
    method: 'get'
  })
}
export function deleteFile(parameter) { //删除文件
  return axios({
    url: '/common/upload/deleteFile?name=' + parameter,
    method: 'get'
  })
}

export function addOrUpdate(parameter) { //提交表单
  return axios({
    url: '/face/serviceBusiness/addOrUpdate',
    method: 'post',
    params: parameter
  })
}

export function selectById(parameter) { //删除文件
  return axios({
    url: '/face/serviceBusiness/selectById/' + parameter,
    method: 'get'
  })
}

export function selectList(parameter) { //查询服务商列表
  return axios({
    url: '/face/serviceBusiness/selectList/' + parameter.pageNum + '/' + parameter.pageSize,
    method: 'post',
    data: parameter
  })
}

export function del(parameter) { //删除接口
  return axios({
    url: '/face/serviceBusiness/delete/' + parameter,
    method: 'get'
  })
}

export function selectAll(parameter) { //查询所有服务商列表
  return axios({
    url: '/face/serviceBusiness/selectAll',
    method: 'get'
  })
}